package com.cskaoyan.bean.yangzihui;

import lombok.Data;

import java.util.List;

/**
 * @author yangzihui
 * @Description
 * @Create 2022-06-26 15:59
 * @Version
 */
@Data
public class CouponData {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<Coupon> list;

    public static CouponData data(long total,Integer pages,Integer limit,Integer page,List list){
        CouponData couponData = new CouponData();
        couponData.setTotal((int) total);
        couponData.setPages(pages);
        couponData.setPage(page);
        couponData.setLimit(limit);
        couponData.setList(list);
        return couponData;
    }
}
